Details
-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
0.9.15
-
None
-
OSGi Service Platform Release 4
Description
It might be a good idea to mark some additional packages imported by logback-classis bundle as optional. Namely this applies to packages
javax.servlet,
javax.servlet.http,
javax.management
By importing package javax.servlet you are forcing the users to deploy Sevlet API bundle even in non-web application environment.
The current <Import-Package> declaration in maven-bundle-plugin configuration:
<Import-Package>sun.reflect;resolution:=optional,
javax.jms;resolution:=optional,
*
</Import-Package>
Suggested update:
<Import-Package>sun.reflect;resolution:=optional,
javax.jms;resolution:=optional,
javax.servlet.*;resolution:=optional,
javax.management;resolution:=optional,
*
</Import-Package>
Feel free to close this as invalid if the above mentioned packages are always required for correct operation of logback-classic.
Attachments
Issue Links
- is duplicated by
-
LOGBACK-599 for OSGi make javax.* imports optional to support using logback-classic without requiring javax.servlet and other jars to be present
- Resolved